import React from 'react';
import { Modal } from 'antd';
import RecipientList from './RecipientList';

const App: React.FC = ({ visible, onCancel }: { visible: boolean; onCancel: () => void }) => {
  return (
    <Modal
      title="设置常用收件人"
      visible={visible}
      onCancel={onCancel}
      width={'90%'}
      style={{
        height: 700,
      }}
      okButtonProps={{
        style: {
          display: 'none',
        },
      }}
    >
      <RecipientList />
    </Modal>
  );
};

export default App;
